package com.xiaoyg.concurrent;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class ConcurrentHashMapUtils {

    public void testConcurrentHashMap() throws InterruptedException {

        Thread.sleep(1000);

        Lock lock = new ReentrantLock();

        lock.lock();
        lock.unlock();


        Map<String,Integer> testMap = new ConcurrentHashMap<>();

        testMap.put("1",1);
    }

}
